package com.wetsion.securityoauthdemo.server.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created by wetsion on 2019/3/2.
 */
@Data
@TableName("sys_user")
public class User implements Serializable {

    private Long id;

    private String usercode;

    private String username;

    private String password;

    private String salt;

    @TableField(exist = false)
    private List<Role> roles;
}
